package com.appspot.bibtable.model.format;

import com.google.appengine.api.datastore.Key;
import com.google.appengine.api.datastore.KeyFactory;

public class KeyFormatter extends OutputFormatter
{
	@Override
	public String format(Object key)
	{
		return format((Key)key);
	}
	
	public String format(Key key)
	{
		return key == null ? null : KeyFactory.keyToString(key);
	}
}
